package org.zjj.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.zjj.dao.OldDao;
import org.zjj.service.OldService;
@Service
public class OldServiceImpl implements OldService {
    @Autowired
    @Qualifier(value = "oldDao")  //指定获取的对象名
    OldDao oldDao;

    @Autowired
    @Qualifier(value = "old2Dao")
    OldDao old2Dao;

    @Autowired
    @Qualifier(value = "old3Dao")
    OldDao old3Dao;


    @Override
    public void showOldDetail() {
        oldDao.showOldDetail();
    }

    @Override
    public void showOld2Detail() {
        old2Dao.showOldDetail();
    }

    @Override
    public void showOld3Detail() {
        old3Dao.showOldDetail();
    }
}
